/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import java.awt.Dimension;

/**
 *
 * @author Jojo
 */
public class StructureObjektsPanel extends javax.swing.JPanel {

    /**
     * Creates new form StructureObjekt
     */
    public StructureObjektsPanel() {
        initComponents();
        this.add(new javax.swing.Box.Filler(new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 10), new java.awt.Dimension(10, 10)));
        this.addStructureCards();
        this.setSize(new Dimension(200,500));
        this.setPreferredSize(new Dimension(200,500));
    }
    
    private void addStructureCards(){
        this.add(new StructureCard(getClass().getResource("/picturesStructures/if.png"),1));
        this.add(new StructureCard(getClass().getResource("/picturesStructures/ifElse.png"),2));
        this.add(new StructureCard(getClass().getResource("/picturesStructures/while.png"),3));
        this.add(new StructureCard(getClass().getResource("/picturesStructures/doWhile.png"),4));
        this.add(new StructureCard(getClass().getResource("/picturesStructures/whileTrue.png"),5));
        this.add(new StructureCard(getClass().getResource("/picturesStructures/for.png"),6));
        this.add(new StructureCard(getClass().getResource("/picturesStructures/class.png"),7));
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 30), new java.awt.Dimension(0, 30), new java.awt.Dimension(32767, 30));

        java.awt.FlowLayout flowLayout1 = new java.awt.FlowLayout();
        flowLayout1.setAlignOnBaseline(true);
        setLayout(flowLayout1);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Strukturblöcke einfügen");
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        add(jLabel1);
        add(filler1);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.Box.Filler filler1;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
